package com.xin.di.uav.common.enums;

/**
 * @author LTQ
 */
public enum DictionarySubjectEnum {
    /**
     *
     */

    WITHDRAWAL_AUTOMATIC_SWITCH("WITHDRAWAL_AUTOMATIC_SWITCH", "自动提现开关"),
    WITHDRAWAL_TOTAL_DAILY_AMOUNT("WITHDRAWAL_TOTAL_DAILY_AMOUNT", "单日所有人总提现总金额不能超过多少"),
    WITHDRAWAL_PERSONAL_DAILY_AMOUNT("WITHDRAWAL_PERSONAL_DAILY_AMOUNT", "单日单人总提现金额不能超过多少"),
    RESCUE_SHOP_BANNER("RESCUE_SHOP_BANNER", "救援商店banner"),
    DELIVERY_TIME("DELIVERY_TIME", "配送时间");

    private String code;
    private String name;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    DictionarySubjectEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String value) {
        for (DictionarySubjectEnum ele : values()) {
            if (ele.getCode().equals(value)) {
                return ele.getName();
            }
        }
        return null;
    }
}
